using System;
using System.Collections.Generic;
using System.Text;

namespace ServiceImpls
{
    public class SampleServiceImpl : ServiceInterfaces.ISampleService
    {
        #region ISampleService Members

        public NorthwindEntities.Products[] LoadAllProductsByPage(int pageSize, int pageNo)
        {
            return Gateways.Northwind.Select<NorthwindEntities.Products>(pageSize, pageNo);
        }

        public TestAccessDbAccessEntities.User[] LoadAllUsers()
        {
            return Gateways.TestAccessDb.SelectAll<TestAccessDbAccessEntities.User>();
        }

        #endregion
    }
}
